package me.sealer.ssm.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;

/**
 * @author sealer
 * @date 2017/07/11
 */
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ShortUrl {
    private Integer id;
    private String longUrl;
    private String shortUrl;
    private int longNumber;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLongUrl() {
        return longUrl;
    }

    public void setLongUrl(String longUrl) {
        this.longUrl = longUrl;
    }

    public String getShortUrl() {
        return shortUrl;
    }

    public void setShortUrl(String shortUrl) {
        this.shortUrl = shortUrl;
    }

    public Integer getLongNumber() {
        return longNumber;
    }

    public void setLongNumber(Integer longNumber) {
        this.longNumber = longNumber;
    }

    @Override
    public String toString() {
        return "ShortUrl{" +
                "id=" + id +
                ", longUrl='" + longUrl + '\'' +
                ", shortUrl='" + shortUrl + '\'' +
                ", longNumber=" + longNumber +
                '}';
    }
}
